import request from '@/utils/request'

export function getUsers(data) {
  return request({
    url: '/backup/web/user/get_users',
    method: 'post',
    data
  })
}
export function addUser(data) {
  return request({
    url: '/backup/web/user/add_user',
    method: 'post',
    data
  })
}
export function updateUser(data) {
  return request({
    url: '/backup/web/user/update_user',
    method: 'post',
    data
  })
}
export function deleteUser(data) {
  return request({
    url: '/backup/web/user/delete_user',
    method: 'post',
    data
  })
}
/** 获取所有部门*/
export function getDepts(data) {
  return request({
    url: '/backup/web/dept/get_depts',
    method: 'post',
    data
  })
}
/** 获取所有角色*/
export function getRoles(data) {
  return request({
    url: '/backup/web/role/get_roles',
    method: 'post',
    data
  })
}
